﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WCFMINERP.Contracts.InterFaces;
using WCFMINERP.Contracts.DataContracts;
using WCFMINERP.BLL.Query;
using System.ServiceModel;

namespace WCFMINERP.Services.Query
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single, ConcurrencyMode = ConcurrencyMode.Multiple)]
    public class InfoQuery:IQuery
    {

        InfoQueryBLL _bll = new InfoQueryBLL();
        /// <summary>
        /// 查询生产信息
        /// </summary>
        /// <param name="inArray"></param>
        /// <returns></returns>
        public List<OrderInfoQuary> OrderQuery(string[] inArray,int shopID)
        {
            return _bll.OrderQuery(inArray, shopID);
 
        }
        /// <summary>
        /// 查询账单信息
        /// </summary>
        /// <param name="inArray"></param>
        /// <returns></returns>
        public List<SHOP_Bill_Info> BillQuery(string[] inArray, int inShopId)
        {
            return _bll.BillQuery(inArray, inShopId);
        }
        /// <summary>
        /// 获取商户的当前余额
        /// 
        /// </summary>
        /// <param name="inShopId"></param>
        /// <returns></returns>
        public double GetShopBlance(int inShopId)
        {
            return _bll.GetShopBlance(inShopId);
        }
    }
}
